package com.ruoyi.community.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论坛收藏对象 bbs_favorite
 * 
 * @author Gaotian
 * @date 2021-12-11
 */
public class BbsFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /**  */
    @Excel(name = "")
    private Long articleid;

    /** $column.columnComment */
    @Excel(name = "")
    private Long userid;

    /** $column.columnComment */
    @Excel(name = "")
    private Integer communityid;

    public BbsFavorite() {
    }

    public BbsFavorite(Long articleid) {
        this.articleid = articleid;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArticleid(Long articleid) 
    {
        this.articleid = articleid;
    }

    public Long getArticleid() 
    {
        return articleid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setCommunityid(Integer communityid) 
    {
        this.communityid = communityid;
    }

    public Integer getCommunityid() 
    {
        return communityid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleid", getArticleid())
            .append("userid", getUserid())
            .append("communityid", getCommunityid())
            .toString();
    }
}
